package io.flutter.plugins;

import androidx.annotation.NonNull;

import io.flutter.Log;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel;
import io.flutter.plugin.common.PluginRegistry;

public class CosFlutterPligin implements MethodChannel.MethodCallHandler {

    public static void registerWith(PluginRegistry.Registrar registrar) {
        final MethodChannel channel = new MethodChannel(registrar.messenger(), "cos_plugin");
        channel.setMethodCallHandler(new CosFlutterPligin());
    }

    @Override
    public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result result) {

        Log.i("Java Cos Uplad", "onMethodCall execute-->"+call.method);
        switch (call.method){
            case "load":
                result.success("hhhhhhhhhhh");
                break;
        }


    }
}
